package com.seadragon.app.ksr.model.shape;

public enum ShapeType {
	NULL_SHAPE(0), POINT(1), POLYLINE(3), POLYGON(5), MULTIPOINT(8), POINTZ(11), POLYLINEZ(13), POLYGONZ(15), MULTIPOINTZ(18), POINTM(21), POLYLINEM(
			23), POLYGONM(25), MULTIPOINTM(28), MULTIPATCH(31);

	private int value;

	private ShapeType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public static ShapeType getInstance(int value) {
		for (ShapeType type : ShapeType.values()) {
			if (type.getValue() == value) {
				return type;
			}
		}
		return null;
	}
}
